import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    redirect: '/index',
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/pages/login/Login.vue'),
  },
  {
    path: '/index',
    name: 'Index',
    component: () => import('@/pages/index/Index.vue'),
  },
  {
    path: '/goodslist', //商品列表
    name: 'GoodsList',
    component: () => import('@/pages/goods/Goodslist.vue'),
  },
  {
    path: '/goodsadd', //商品列表
    name: 'Goodsadd',
    component: () => import('@/pages/goods/Goodsadd.vue'),
  },
  {
    path: '/goodssort', //商品分类
    name: 'Goodssort',
    component: () => import('@/pages/goods/goodssort.vue'),
  },
  {
    path: '/goodsbrand', //品牌管理
    name: 'Goodsbrand',
    component: () => import('@/pages/goods/goodsbrand.vue'),
  },
]
export default new VueRouter({
  routes,
  mode: 'hash',
})
